﻿using Caliburn.Micro;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SmartRenamer.ViewModels
{
  class MainViewModel : PropertyChangedBase
  {
    private List<FileInfo> filesList;

    public List<FileInfo> FilesList
    {
      get { return filesList; }
      set
      {
        filesList = value;
        NotifyOfPropertyChange(() => FilesList);
      }
    }

    public void OpenFolder()
    {
      string chosenPath = ShowDialog();
    }

    private string ShowDialog()
    {
      var dialog = new FolderBrowserDialog();
      DialogResult result = dialog.ShowDialog();
      if (result == DialogResult.OK)
      {
        return dialog.SelectedPath;
      }
      return null;
    }
  }
}
